package com.medical.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;


/*
 * @Date : 2024/4/30 上午10:59
 * @Created by Lang
 * @ProjectName : medical-appointment-registration
 */

/**
 * 患者信息表
 */
@Data
@TableName(value = "mar_patient")
public class Patient {
    /**
     * 主键
     */
    @TableId(value = "patient_id", type = IdType.INPUT)
    private Long patientId;

    /**
     * 患者姓名
     */
    @TableField(value = "patient_name")
    private String patientName;

    /**
     * 就诊卡号
     */
    @TableField(value = "patient_card_num")
    private Integer patientCardNum;

    /**
     * 证件类型
     */
    @TableField(value = "card_type")
    private String cardType;

    /**
     * 证件号码
     */
    @TableField(value = "card_number")
    private Long cardNumber;

    /**
     * 微信昵称
     */
    @TableField(value = "weichat_name")
    private String weichatName;

    /**
     * 手机号码
     */
    @TableField(value = "patient_phone")
    private Integer patientPhone;

    /**
     * 关系
     */
    @TableField(value = "relation")
    private String relation;

    /**
     * 就诊人地址
     */
    @TableField(value = "patient_address")
    private String patientAddress;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 状态 1 启用 0 禁用 默认1
     */
    @TableField(value = "`state`")
    private Integer state;

    /**
     * 医生id
     */
    @TableField(value = "doctor_id")
    private Long doctorId;

    /**
     * 微信id
     */
    @TableField(value = "weichat_id")
    private Integer weichatId;

    public static final String COL_PATIENT_ID = "patient_id";

    public static final String COL_PATIENT_NAME = "patient_name";

    public static final String COL_PATIENT_CARD_NUM = "patient_card_num";

    public static final String COL_CARD_TYPE = "card_type";

    public static final String COL_CARD_NUMBER = "card_number";

    public static final String COL_WEICHAT_NAME = "weichat_name";

    public static final String COL_PATIENT_PHONE = "patient_phone";

    public static final String COL_RELATION = "relation";

    public static final String COL_PATIENT_ADDRESS = "patient_address";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_STATE = "state";

    public static final String COL_DOCTOR_ID = "doctor_id";

    public static final String COL_WEICHAT_ID = "weichat_id";
}